<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>充值</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no"/>
	    <meta http-equiv="Access-Control-Allow-Origin" content="*">
	    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
		<link rel="stylesheet" href="../css/base.css" />
		<link rel="stylesheet" href="../css/chongZhi.css" />
		<script src="../js/jquery-2.2.3.min.js"></script>
		<script type="text/javascript" src="../js/rem.js"></script>
	</head>
	<body>
		<div class="header">
			<a href="javascript:history.back(-1)"><img src="../img/g_next.png" alt="" /></a>
			充值
		</div>
		<div class="chongZhi_main">
			<p class="chongZhi_money">充值金额</p>
			<div class="chongZhi_money_div">
				<span>￥</span>
				<input type="text" class="chongZhi_money_inp" placeholder="请输入充值金额" />
			</div>
		</div>
		<input type="button" value="下一步" class="chongZhi_btn" />
	</body>
</html>

<script src="../js/common.js"></script>
<script src="detail/layer-v3.1.1/layer/layer.js"></script>
<script>
$(function(){
	var userId=localStorage.getItem('userId');

	if(!userId){
		layer.msg('请登录',{time: 1500},function(){
			window.location.href='./detail/login.html';
		})
	}

	$('.chongZhi_btn').click(function(){
		var money=$('.chongZhi_money_inp').val();
		if(money<=0){
			layer.msg('请输入充值金额');
			return false;
		}


		window.location.href='./shouYinTai.html?money='+money;	

	})
		
})
</script>
